{include file="{$smarty.const.APP_PATH}/Admin/View/Public/table.head.html"}
<script>
{literal}
    
{/literal}
</script>
<body onload = "startTime();">

<div class="mainwrapper">
    
{include file="{$smarty.const.APP_PATH}/Admin/View/Public/menu.body.html"}
    
    <!-- START OF RIGHT PANEL -->
    <div class="rightpanel">
        {include file="{$smarty.const.APP_PATH}/Admin/View/Public/users.body.html"}<!--右边头部-->
        <div class="breadcrumbwidget">
            <ul class="skins">
                <li><a href="default" class="skin-color default"></a></li>
                <li><a href="orange" class="skin-color orange"></a></li>
                <li><a href="dark" class="skin-color dark"></a></li>
                <li>&nbsp;</li>
                <li class="fixed"><a href="" class="skin-layout fixed"></a></li>
                <li class="wide"><a href="" class="skin-layout wide"></a></li>
            </ul><!--skins-->
            <ul class="breadcrumb">
                <li><a href="{$smarty.const.__MODULE__}/Index/main">Home</a> <span class="divider">/</span></li>
                <li><a href="#">车辆管理</a> <span class="divider">/</span></li>
                <li class="active">车辆列表</li>
            </ul>
        </div><!--breadcrumbs-->
        <div class="pagetitle">
            <h1>车辆列表</h1> <span>用来显示所有车辆相关信息</span>
        </div><!--pagetitle-->
        
        <div class="maincontent">
            <div class="contentinner">
            
                <h4 class="widgettitle">分类列表</h4>
                <table class="table table-bordered" id="dyntable">
                    <colgroup>
                        <col class="con0" style="align: center; width: 4%" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                        <col class="con0" />
                        <col class="con1" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th class="head0 nosort"><input type="checkbox" class="checkall" /></th>
                            <th class="center">ID</th>
                            <th class="center">名称</th>
                            <th class="center">价格</th>
                            <th class="center">上架时间</th>
                            <th class="center">修改</th>
                            <th class="center">删除</th>
                        </tr>
                    </thead>
                    <tbody>
                      
						{foreach from=$carList item=car}
                            <tr class="gradeX">
                                <td class="aligncenter">
                                    <span class="center">
                                        <input type="checkbox" />
                                    </span>
                                </td>
                                <td class="center">{$car.car_id}</td>
                                <td class="center">{$car.name}</td>
                                <td class="center">{$car.price}</td>
                                <td class="center">{date($car.add_time|date_format:"%Y/%m/%d")}</td>       
                                <td class="center">
                                    <a href="{$smarty.const.__CONTROLLER__}/updateCarInfo/carId/{$car.car_id}" title="修改">
                                        <span class="icon-edit"></span>
                                    </a>
                                </td>
                                <td class="center">
                                    <a onclick="return confirm('你确定要删除吗??');"  title="删除" href="{$smarty.const.__CONTROLLER__}/deleteCar/carId/{$car.car_id}/carToken/{$carToken}">
                                        <span class="icon-remove"></span>
                                    </a>
                                </td>
                            </tr>
                        
						{/foreach}
                    </tbody>
                </table>
				<div class="widgettitle" style="font-size:media;">
				 共有{$carCount}条记录 ---{$countPage}页
				 <a id="dyntable_first" tabindex="0" href="{$smarty.const.__ACTION__}/page/1">首页</a>
				 <a id="dyntable_previous" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$previousPage}">>上页</a>
				 <a id="dyntable_next" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$nextPage}">>下页</a>
				 <a id="dyntable_last" tabindex="0" href="{$smarty.const.__ACTION__}/page/{$countPage}">>末页</a>
				</div>
				
				
                
               <!--  <div class="divider15"></div>
               
               <pre class="prettyprint linenums">//Include this script in your document &lt;head&gt;
               &lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.dataTables.min.js&quot;&gt;&lt;/script&gt;</pre>
               
               <div class="divider15"></div>
               
               <pre class="prettyprint linenums">// dynamic table<br>jQuery('#dyntable').dataTable({
                  &quot;sPaginationType&quot;: &quot;full_numbers&quot;,
                  &quot;aaSortingFixed&quot;: [[0,'asc']],
                  &quot;fnDrawCallback&quot;: function(oSettings) {
                     jQuery.uniform.update();
                  }<br>});<br></pre>
                  
                                <div class="divider15"></div>
                  
                                <pre class="prettyprint linenums">&lt;table class=&quot;table table-bordered&quot; id=&quot;dyntable&quot;&gt;</pre> -->
                
                
            </div><!--contentinner-->
        </div><!--maincontent-->
        
    </div><!--mainright-->
    <!-- END OF RIGHT PANEL -->
    
    <div class="clearfix"></div>
    
    <div class="footer">
        <div class="footerleft">快达租赁管理 v1.0</div>
        <div class="footerright">&copy; twen_Yee </div>
    </div><!--footer-->
    
</div><!--mainwrapper-->

</body>
</html>